package com.toolmanrln.common.api.dto;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author ToolMan.RLN
 * @since 2020-05-25 11:40
 */
@Data
@AllArgsConstructor
@ApiModel(value = "Token信息", description = "Token信息")
public class TokenDTO {

    @ApiModelProperty(value = "token", dataType = "String")
    private String token;

    @ApiModelProperty(value = "过期时间，格式为 yyyy-MM-dd HH:mm:ss", dataType = "String")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime expireDateTime;

}
